import { createWebHashHistory, createRouter } from 'vue-router'

import layout from '@/views/layout/index.vue'

const routes = [
  { path: '/', redirect: '/home' },
  { path: '/home', component: () => import('@/views/home/index.vue') },
  { path: '/layout', component: () => import('@/views/layout/index.vue') },
  { path: '/icon-select', component: () => import('@/views/icon-select/index.vue') },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})
export default router